// FlyMoveLgSprite.h: interface for the FlyMoveLgSprite class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FLYMOVELGSPRITE_H__6E162749_A07A_4485_86FC_05880EA20E74__INCLUDED_)
#define AFX_FLYMOVELGSPRITE_H__6E162749_A07A_4485_86FC_05880EA20E74__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DynamicLgSprite.h"
enum State_e
{
	eS1,
	eS2,
	eMoving1,
	eMoving2,
};
class LOGICSPRITES_API FlyMoveLgSprite : public DynamicLgSprite  
{
public:
	FlyMoveLgSprite(int nTime,int nPastTime,RECT rect,int nInterVal1,int nInterVal2,const vector<RectInBalloonElemnet_t>& listRect);
	virtual ~FlyMoveLgSprite();
	void Update(DWORD dwCurrentTime);
	//int Hit(RECT rect);
private:
	int m_nTime;
	int m_nPastTime;
	int m_nInterVal1;
	int m_nInterVal2;
	D3DXVECTOR2 m_StartPos;
	D3DXVECTOR2 m_EndPos;
	float m_fSpeedx;
	float m_fSpeedy;
	State_e m_eState;
};

#endif // !defined(AFX_FLYMOVELGSPRITE_H__6E162749_A07A_4485_86FC_05880EA20E74__INCLUDED_)
